package com.tourism.tourismGYM.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/**
 * @author gym 
 * 报名登记管理实体类
 */

@Entity
@Table(name = "tourism_rm")
public class TourismRm implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4430082052550992717L;
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	private String id;
	/**
	 * 申请时间
	 */
	@Column(name = "application_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date applicationTime;
	/**
	 * 总费用
	 */
	@Column(name = "gross_price")
	private double grossPrice;
	/**
	 * 总人数
	 */
	private int numbers;
	/**
	 * 申请人
	 */
	private String applicant;
	/**
	 * 项目编号
	 */
	@Column(name = "apm_id")
	private String apmId;
	@Transient
	private String apmName;
	
	public String getApmName() {
		return apmName;
	}
	public void setApmName(String apmName) {
		this.apmName = apmName;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Date getApplicationTime() {
		return applicationTime;
	}
	public void setApplicationTime(Date applicationTime) {
		this.applicationTime = applicationTime;
	}
	
	public double getGrossPrice() {
		return grossPrice;
	}
	public void setGrossPrice(double grossPrice) {
		this.grossPrice = grossPrice;
	}
	public int getNumbers() {
		return numbers;
	}
	public void setNumbers(int numbers) {
		this.numbers = numbers;
	}
	public String getApplicant() {
		return applicant;
	}
	public void setApplicant(String applicant) {
		this.applicant = applicant;
	}
	public String getApmId() {
		return apmId;
	}
	public void setApmId(String apmId) {
		this.apmId = apmId;
	}
	
}
